PHP warning

is_dir(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (/var/www/vhosts/yfu.ch/survey.yfu.ch/:/tmp/)

/var/www/vhosts/yfu.ch/survey.yfu.ch/application/models/Template.php(344)

332 
333     /**
334      * Return the list of ALL files present in the file directory
335      *
336      * @param string $filesDir
337      * @return array
338      */
339     static public function getOtherFiles($filesDir)
340     {
341         $otherFiles = array();
342         if (file_exists($filesDir) && $handle = opendir($filesDir)) {
343             while (false !== ($file = readdir($handle))) {
344                 if (!is_dir($file)) {
345                     $otherFiles[] = array("name" => $file);
346                 }
347             }
348             closedir($handle);
349         }
350         return $otherFiles;
351     }
352 
353     /**
354      * This function returns the complete URL path to a given template name
355      *
356      * @param string $sTemplateName

Stack Trace

#0
+
 /var/www/vhosts/yfu.ch/survey.yfu.ch/application/models/Template.php(344): is_dir("..")
339     static public function getOtherFiles($filesDir)
340     {
341         $otherFiles = array();
342         if (file_exists($filesDir) && $handle = opendir($filesDir)) {
343             while (false !== ($file = readdir($handle))) {
344                 if (!is_dir($file)) {
345                     $otherFiles[] = array("name" => $file);
346                 }
347             }
348             closedir($handle);
349         }
#1
+
 /var/www/vhosts/yfu.ch/survey.yfu.ch/application/models/TemplateConfiguration.php(613): Template::getOtherFiles("/var/www/vhosts/yfu.ch/survey.yfu.ch/themes/survey/bootswatch/fi...")
608     }
609 
610     protected function getOptionPageAttributes()
611     {
612         $aData = $this->attributes;
613         $fileList = Template::getOtherFiles($this->filesPath);
614         $aData['maxFileSize'] = getMaximumFileUploadSize();
615         $aData['imageFileList'] = [];
616         foreach ($fileList as $file) {
617             $isImage = $this->_filterImages($file);
618 
#2
+
 /var/www/vhosts/yfu.ch/survey.yfu.ch/application/models/TemplateConfiguration.php(630): TemplateConfiguration->getOptionPageAttributes()
625     }
626 
627     public function getOptionPage()
628     {
629         $oTemplate = $this->prepareTemplateRendering($this->template->name);
630         $renderArray = array('templateConfiguration' => $oTemplate->getOptionPageAttributes());
631 
632         $oTemplate->setOptions();
633         $oTemplate->setOptionInheritance();
634 
635         //We add some extra values to the option page
2018-02-22 09:29:37 Apache Yii Framework/1.1.18